package org.xenon.vote.model.pojo.vo;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class Mail {
    @NotNull(message = "mail.null")
    @NotBlank(message = "mail.blank")
    @Email(message = "mail.format")
    String recv;

    @NotNull(message = "title.null")
    String title;

    @NotNull(message = "body.null")
    String body;

    public Mail(@NotNull(message = "mail.null")
                @NotBlank(message = "mail.blank")
                @Email(message = "mail.format") String recv,
                @NotNull(message = "title.null") String title,
                @NotNull(message = "body.null") String body) {
        this.recv = recv;
        this.title = title;
        this.body = body;
    }

    public String getRecv() {
        return recv;
    }

    public void setRecv(String recv) {
        this.recv = recv;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }
}
